import request from '@/utils/request'
/**
 * 分页查询
 * @param {Object} query 查询条件
 */
export function GetWithdrawCashPageList(query) {
  return request({
    url: '/services/app/withdrawCash/GetWithdrawCashPageList',
    method: 'get',
    params: query
  })
}

/**
 * 创建提现申请单
 * @param {Object} dto 提现详情
 */
export function Create(dto) {
  return request({
    url: '/services/app/withdrawCash/Create',
    method: 'post',
    data: dto
  })
}

/**
 * 审核提现申请
 * @param {Object} dto id
 */
export function Auditing(dto) {
  return request({
    url: '/services/app/withdrawCash/Auditing',
    method: 'post',
    data: dto
  })
}

/**
 * 回退提现申请
 * @param {Object} dto id
 */
export function NotThrough(dto) {
  return request({
    url: '/services/app/withdrawCash/NotThrough',
    method: 'post',
    data: dto
  })
}

/**
 * 完成已审核提现申请
 * @param {Object} dto id
 */
export function Complete(dto) {
  return request({
    url: '/services/app/withdrawCash/Complete',
    method: 'post',
    data: dto
  })
}
